package com.example.farm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class LoginController {



    @RequestMapping(value="/register")
    public  ModelAndView hello1(){
        ModelAndView mv = new ModelAndView("register");
        return mv;
    }

    @RequestMapping(value="/login")
    public  ModelAndView hello2(){
        ModelAndView mv = new ModelAndView("login");
        return mv;
    }

    @RequestMapping(value="/buy")
    public  ModelAndView hello3(){
        ModelAndView mv = new ModelAndView("buy");
        return mv;
    }

    //土地页面展示页面
    @RequestMapping(value="/landload")
    public  ModelAndView hello4(){
        ModelAndView mv = new ModelAndView("landload");
        return mv;
    }
    //统一支付页面
    @RequestMapping(value="/pay")
    public  ModelAndView hello5(){
        ModelAndView mv = new ModelAndView("unifiedPayment");
        return mv;
    }

    //支付结算页面
    @RequestMapping(value="/pay1")
    public  ModelAndView hello6(){
        ModelAndView mv = new ModelAndView("zhifuyemian");
        return mv;
    }
    //土地信息页面
    @RequestMapping(value="/land")
    public  ModelAndView hello7(){
        ModelAndView mv = new ModelAndView("progressReport");
        return mv;
    }

    @RequestMapping(value="/login1")
    public  ModelAndView hello8(){
        ModelAndView mv = new ModelAndView("test");
        return mv;
    }

    @RequestMapping(value="/home")
    public  ModelAndView hello9(){
        ModelAndView mv = new ModelAndView("home");
        return mv;
    }
    @RequestMapping(value="/index")
    public  ModelAndView hello10(){
        ModelAndView mv = new ModelAndView("index");
        return mv;
    }

    @RequestMapping(value="/index1")
    public  ModelAndView hello11(){
        ModelAndView mv = new ModelAndView("index1");
        return mv;
    }

    @RequestMapping(value="/index2")
    public  ModelAndView hello12(){
        ModelAndView mv = new ModelAndView("index2");
        return mv;
    }

    @RequestMapping(value="/index3")
    public  ModelAndView hello13(){
        ModelAndView mv = new ModelAndView("index3");
        return mv;
    }

}